<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<%@ include file="/WEB-INF/views/include/header.jsp"%>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cmsModel-edit" object="${cmsModel}">
            <input id="modelId" name="modelId"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">站点ID：</label>
                <div class="col-sm-8">
                    <input id="siteId" name="siteId" value="${siteId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">类型：</label>
                <div class="col-sm-8">
                    <input id="type" name="type" value="${type}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">模型名称：</label>
                <div class="col-sm-8">
                    <input id="name" name="name" value="${name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">编号：</label>
                <div class="col-sm-8">
                    <input id="number" name="number" value="${number}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">顺序：</label>
                <div class="col-sm-8">
                    <input id="seq" name="seq" value="${seq}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <%@ include file="/WEB-INF/views/include/footer.jsp"%>
    <script type="text/javascript">
		var prefix = ctx + "cms/cmsModel"
		$("#form-cmsModel-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-cmsModel-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
